<template>
    <div class="layout-content" :route="routename">
        <Headerbar />
        <main class="layout-main">
            <Nuxt class="layout-page" />
            <!-- <Nuxt keep-alive :keepAliveProps="{ include: ['ProductIndex'] }" /> -->
        </main>
        <FooterMap />
        <CookieTip />
        <Login />
    </div>
</template>

<script>
export default {
    data () {
        return {
        };
    },
    computed: {
        routename () {
            return this.$route.name || '';
        },
    },
}
</script>


<style lang="scss" scoped>
.layout-main {
    min-height: calc(100vh - 78px);
    position: relative;
    display: flex;
}

::v-deep {
    .layout-header {
        .header {
            padding: 0;

            &>cite {
                box-sizing: border-box;
                max-width: 1400px;
                padding: 0 32px;
            }
        }
    }

    .footer-map {
        position: relative;
    }
}


@media (max-width: 960px) {
    .layout-main {
        overflow: hidden;
        min-width: auto;
        min-height: calc(100vh - 52px);
    }
}
</style>
